package miracle.joker;

import miracle.joker.design.singleton.Singleton;
import miracle.joker.design.builder.Computer;
import miracle.joker.design.builder.ComputerBuilder;

public class AppMain {
    public static void main(String[] args) {
        Singleton singleton = Singleton.getInstance();
        singleton.showMessage();

        ComputerBuilder builder = new ComputerBuilder();

        Computer computer1 = builder.setCPU("Intel Core i3")
                                    .setRAM("8 GB")
                                    .setStorage("1 TB")
                                    .build();

        Computer computer2 = builder.setCPU("Intel Core i7")
                                    .setRAM("16 GB")
                                    .setStorage("512 GB SSD")
                                    .setGPU("NVIDIA GeForce RTX 3070")
                                    .build();

        System.out.println(computer1);
        System.out.println(computer2);
    }
}
